﻿using EkStudio.com.bean.xml.reflection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.RootInterface.Field
{
    public class BillUiFieldsViewBorderLinker:BillObjectInterface
    {
        private string key = "";//多样式表单key
        private string caption = "";//多样式表单caption
        private string languageTexts = "";//多样式表单多语言key
        private string disposeJscript = "";//传值处理js函数
        private bool shInWindow = false;//是否窗口显示 默认为新Tab页面显示
        private string winSize = "500*350";//窗口大于

        [Xml]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        [Xml]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }
        [Xml]
        public string LanguageTexts
        {
            get
            {
                return languageTexts;
            }

            set
            {
                languageTexts = value;
            }
        }
        [Xml]
        public string DisposeJscript
        {
            get
            {
                return disposeJscript;
            }

            set
            {
                disposeJscript = value;
            }
        }
        [Xml]
        public bool ShInWindow
        {
            get
            {
                return shInWindow;
            }

            set
            {
                shInWindow = value;
            }
        }
        [Xml]
        public string WinSize
        {
            get
            {
                return winSize;
            }

            set
            {
                winSize = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            BillUiFieldsViewBorderLinker clone = new BillUiFieldsViewBorderLinker();
            clone.Key = key;
            clone.Caption = caption;
            clone.DisposeJscript = disposeJscript;
            clone.ShInWindow = shInWindow;
            clone.WinSize = winSize;
            return clone;
        }

        public override string ToString()
        {
            return "[Expression]";
        }
    }
}
